#ifndef FILESYSTEM_H
#define FILESYSTEM_H

typedef struct p2pfile{
int inodeNumber;
char* filepath;
}file_t;

//input: path to file
//output: pointer to file
file_t* openFile(char*);

//input: pointer to file
//output: none
void closeFile(file_t*);

//input: file pointer
//output: string with contents of file
char* readFile(file_t*);

//input: file pointer, string with contents of file
//output: error code
int writeFile(file_t*, char*);

//input: directory
//output: number of files in the directory
int numberOfFiles(char*);

//input: directory
//output: list of filepaths in the directory
char** getFileNameList(char*);

int* concat(int[11][1024/sizeof(int)]);

#endif
